<include file="Public:header" />
<div class="main">
<div class="position">
    <p>您的当前位置：<a href="/">首页</a>  >  <a title="出租" href="{:U('Rental/index')}">出租</a>
    <volist name='nav' id='vo'>
        > <a title="{$vo.name}" href="{:U('Rental/index',array('alias'=>$vo['alias']))}">{$vo.name}</a>
    </volist>
    </p>
</div>
<div class="s_h_h_show01 overflow_h">
    <div class="s_h_h_show01_n1">
        <h1 class="s_h_h_show01_n1_h1">{$rental.title}</h1>
        <div class="s_h_h_show01_n1_left">
            <span class="s_h_h_show01_n1_left_img"><img src="{$img_list[0]['img']}" width="415" height="276" /></span>
            <ul>
                <volist name='img_list' id='vo'>
                    <php>if($key<5){</php>
                    <li <php>if($key==4){</php>style="margin-right:0;"<php>}</php> ><img src="{$vo.img}" title="{$vo.alt}" alt="{$vo.alt}" width="73" height="55" /></li>
                    <php>}</php>
                </volist>
            </ul>
        </div>
        <div class="s_h_h_show01_n1_right">
            <div class="s_h_h_show01_n1_right_tab">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <th width="22%">租 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;金：</th>
                        <td width="49%"><span class="s_text03">{$rental.price}</span>元</td>
                        <td width="29%"><a href="javascript:;" request-url="{:U('Ajax/rentalBook',array('id'=>$rental['id']))}" class="but20 pop_up">预约看房</a></td>
                    </tr>
                    <tr>
                        <th>押 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;金：</th>
                        <td colspan="2">{$rental.deposit} 元</td>
                    </tr>
                    <tr>
                        <th>房 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</th>
                        <td colspan="2">{$rental.room}室{$rental.hall}厅{$rental.toilet}卫{$rental.kitchen}厨{$rental.balcony}阳台</td>
                    </tr>
                    <tr>
                        <th>产证面积：</th>
                        <td colspan="2">{$rental.area}平方米</td>
                    </tr>
                </table>
            </div>

            <div class="s_h_h_show01_n1_right_n2">
                <div class="s_h_n2_t"><h2>{$rental.phone}</h2><p>打电话时请告知是在{$siteName}上看到的，谢谢！</p></div>
                <div class="s_h_n2_t1"><p><a style="color: orange" href="javascript:;" request-url="{:U('Ajax/rentalTel',array('id'=>$rental['id']))}" class="pop_up">免费电话</a></p></div>
            </div>

            <div class="s_h_h_show01_n1_right_tab">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <th width="22%">小区名称：</th>
                        <td colspan="3"><a target="_blank" href="{:U('Estate/detail',array('id'=>$rental['estate_id']))}">{$estate.title}</a></td>
                    </tr>
                    <tr>
                        <th>地 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：</th>
                        <td width="36%">{$rental.address}<a target="_blank" href="{:U('Map/index',array('hid'=>$rental['id'],'type'=>'rental'))}">(地图)</a></td>
                        <th colspan="2"></th>
                    </tr>
                    <tr>
                        <th>楼 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层：</th>
                        <td>{$rental.floor}层/共{$rental.total_floor}层</td>
                        <th width="23%">装 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修：</th>
                        <td width="19%">{$menu[10][$rental['renovation_type']]}</td>
                    </tr>
                    <tr>
                        <th>朝 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;向：</th>
                        <td>{$menu[17][$rental['orientations']]}</td>
                        <th width="23%">建造年代：</th>
                        <td width="19%">{$rental.years}年</td>
                    </tr>
                </table>
            </div>

        </div>
    </div>
    <div class="s_h_h_show01_n2">
        <span class="s_h_h_show01_n2_img"><a target="_blank" href="{:U('Store/index',array('uid'=>$rental_user['id']))}"><img src="{$rental_user.head_ico}" width="108" height="108" /></a></span>
        <h2><a target="_blank" href="{:U('Store/index',array('uid'=>$rental_user['id']))}">{$rental_user.true_name}</a></h2>
        <div class="overflow_h"><span class="s_h_h_sp">等级：</span>
            <div class="star">
                <php>
                    for($i=1;$i<6;$i++){
                    if($rental_user['level']>=$i){
                </php>
                <span class="star_01 star_ico01" title="{$i}级会员"></span>
                <php>}else{</php>
                <span class="star_01 star_ico02" title="{$i}级会员"></span>
                <php>}}</php>
            </div>
        </div>
        <p>所属公司：<span class="text11">{$rental_user.company_name}</span></p>
        <p>联系地址：<span class="text11">{$rental_user.address}</span></p>
        <div class="s_h_h_show01_n2_but"><a target="_blank" href="{:U('Store/index',array('uid'=>$rental_user['id']))}" class="but21">进入我的店铺</a></div>
    </div>

</div>

<div class="body_house overflow_h" style="position: relative">
    <div class="body_left">
        <div class="body_title">
            <span class="body_title_r">
             <include file="Public:baidu" />
            </span>
            <ul>
                <li><a href="#info" rel="nofollow" class="selected">房源介绍</a></li>
                <li><a href="#img" rel="nofollow" >房源照片</a></li>
                <li><a href="#map" rel="nofollow" >地图位置</a></li>
                <li><a href="#area" rel="nofollow">小区简介</a></li>
            </ul>
        </div>
        <div class="overflow_h">
            <div class="introduce_house01">
                <h1 class="n_h_title"><span id="info" class="s_bg_line">房源介绍</span></h1>
                <php>if($mating){</php>
                <ul class="fwpt">
                    <li class="fwpt_title">房屋配套:</li>
                    <volist name='mating' id='vo'>
                        <li>{$menu[20][$vo]}</li>
                    </volist>
                </ul>
                <div class="line"></div>
                <php>}</php>
                <php>if($tags){</php>
                <ul class="fwpt">
                    <li class="fwpt_title">房屋特色:</li>
                    <volist name='tags' id='vo'>
                        <li>{$vo}</li>
                    </volist>
                </ul>
                <div class="line"></div>
                <php>}</php>
               {$rental.info}
            </div>

            <div class="introduce_house02 overflow_h">
                <h1 class="n_h_title"><span id="img" class="s_bg_line">房源照片</span></h1>
                <div class="introduce_house02_tab">
                    <ul>
                    <volist name='img_list' id='vo'>
                        <li <php>if(($key+1)%2==0){</php>style="margin-right:0" <php>}</php> ><a class="img_list"  data-fancybox-group="gallery" title="{$vo.alt}" href="{$vo.img}"><img src="{$vo.img}" alt="{$vo.alt}" width="413" height="251" /></a></li>
                    </volist>
                    </ul>
                </div>

            </div>
            <php>if($rental['map']){</php>
            <div class="introduce_house03 overflow_h">
                <h1 class="n_h_title"><span id="map" class="s_bg_line">地理位置</span></h1>
                <div style="height: 500px;margin-top:10px;overflow: hidden;width: 860px;">
                    <iframe width="860" height="auto" frameborder="0" scrolling="no" src="{:U('Api/map',array('id'=>$rental['id'],'model'=>'rental'))}" id="main" style="height: 500px; width: 860px;"></iframe>
                </div>
            </div>
            <php>}</php>
            <div class="introduce_house03 overflow_h">
                <h1 class="n_h_title"><span id="area" class="s_bg_line">小区简介</span></h1>
                {$estate.info}
            </div>

            <div class="introduce_house04">
                <h1 class="n_h_title"><span class="s_bg_line">联系信息</span></h1>
                <div class="introduce_house04_n overflow_h">
                    <div class="introduce_house04_n1">
                        <h2>{$rental.phone}</h2>
                        <p>联系人：<span class="org02">{$rental.contacts}</span></p>
                        <p class="text11">打电话时请告知是在{$siteName}上看到的，谢谢！</p>
                    </div>
                    <div class="introduce_house04_n2"><p><a  href="javascript:;" request-url="{:U('Ajax/rentalTel',array('id'=>$rental['id']))}" class="pop_up">免费电话</a></p><p><a  href="javascript:;" request-url="{:U('Ajax/report',array('id'=>$rental['id'],'model'=>'rental'))}" class="pop_up">举报虚假信息</a></p><p><a target="_blank" href="{:U('Store/index',array('uid'=>$rental['user_id']))}">进入我的店铺</a></p></div>
                </div>
            </div>

            <div class="introduce_house05"><h1 class="n_h_title"><span class="s_bg_line">免责声明</span></h1>
                <p>{$explain.rental}</p>
            </div>
        </div>
    </div>
    <div class="body_right">
        <php>if($rental_estate){</php>
        <div class="second_hand_house_box">
            <h1 class="n_h_title"><span class="s_bg_line">本小区相关房源</span><span class="more"><a target="_blank" href="{:U('Estate/detail',array('id'=>$rental['estate_id']))}">更多</a></span></h1>
            <ul>
                <volist name='used_estate' id='vo'>
                    <li><span class="s_box01"><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.total_price}万</span></li>
                </volist>
            </ul>
        </div>
        <php>}</php>
        <php>if($rental_area){</php>
        <div class="second_hand_house_box">
            <h1 class="n_h_title"><span class="s_bg_line">同地区相近房源</span><span class="more"><a target="_blank" href="{:U('Rental/index',array('alias'=>$cate['alias']))}">更多</a></span></h1>
            <ul>
                <volist name='used_area' id='vo'>
                    <li><span class="s_box01"><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.total_price}万</span></li>
                </volist>
            </ul>
        </div>
        <php>}</php>
        <php>if($rental_list){</php>
        <div class="second_hand_house_box">
            <h1 class="n_h_title"><span class="s_bg_line">本小区出租房</span><span class="more"><a target="_blank" href="{:U('Rental/index',array('alias'=>$cate['alias']))}">更多</a></span></h1>
            <ul>
                <volist name='rental_area' id='vo'>
                    <li><span class="s_box01"><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.total_price}万</span></li>
                </volist>
            </ul>
        </div>
        <php>}</php>
        <div class="introduce_house06">
            <h1 class="n_h_title"><span class="s_bg_line">出租知识</span><span class="more"><a target="_blank" href="{:U('News/lists',array('alias'=>'zufangzhishi'))}">更多</a></span></h1>
            <ul>
                <volist name='news_list' id='vo'>
                    <li><a  target="_blank" title="{$vo.title}" href="{:U('News/detail',array('id'=>$vo['id']))}">· {$vo.title}</a></li>
                </volist>
            </ul>
        </div>
    </div>
</div>
<div id="abc"></div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript" src="__S__/fancybox/jquery.fancybox.js"></script>
<link rel="stylesheet" type="text/css" href="__S__/fancybox/jquery.fancybox.css"/>
<script type="text/javascript">
    $('.img_list').fancybox();
    $(".s_h_h_show01_n1_left li img").click(function(){
        var img = $(this).attr('src');
        $(".s_h_h_show01_n1_left_img img").attr('src',img);
    });
    $(window).scroll(function(){
       var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
       if(scrollTop > 740){
           $('.body_title').addClass('po_fixed');
       }else{
           $('.body_title').removeClass('po_fixed');
       }
    });
</script>
<include file="Public:footer" />